﻿<Window x:Class="FullRefreshService.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:wfi="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
        xmlns:swf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
        Icon="MainIcon.ico"
        Title="MediaBrowser Library Refresh Service" Height="506" Width="666">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="288*" />
            <RowDefinition Height="179*" />
        </Grid.RowDefinitions>
        <TextBox MaxLength="10000000" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="12,121,12,33" Name="messagesTxt" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" IsReadOnly="True" Grid.RowSpan="2" />
        <Button Content="Start Service" Height="28" HorizontalAlignment="Left" Margin="557,87,0,0" Name="startBtn" VerticalAlignment="Top" Width="75" Click="startBtn_Click" />
        <Label Content="Run service every" Height="28" HorizontalAlignment="Left" Margin="245,87,0,0" Name="label1" VerticalAlignment="Top" />
        <Label Content="hours at" Height="28" HorizontalAlignment="Left" Margin="398,87,0,0" Name="label2" VerticalAlignment="Top" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="353,89,0,0" Name="hoursTxt" VerticalAlignment="Top" Width="39" />
        <wfi:WindowsFormsHost Margin="457,89,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Name="formsHost" Width="80">
            <swf:DateTimePicker x:Name="timePicker" Format="Custom" CustomFormat="HH:mm" ShowUpDown="True"/>
        </wfi:WindowsFormsHost>
        <CheckBox Content="Start Service on startup" Height="16" HorizontalAlignment="Left" Margin="491,65,0,0" Name="startServiceOnStartupChk" VerticalAlignment="Top" Unchecked="startServiceOnStartupChk_Unchecked" Checked="startServiceOnStartupChk_Checked" />
        <CheckBox Content="Run Refesh on app load" Height="16" HorizontalAlignment="Left" Margin="491,49,0,0" Name="startupRefreshChk" VerticalAlignment="Top" Checked="startupRefreshChk_Checked" Unchecked="startupRefreshChk_Unchecked" />
        <Button Content="Refresh Now" Height="28" HorizontalAlignment="Left" Margin="12,87,0,0" Name="refreshNowBtn" VerticalAlignment="Top" Width="75" ClipToBounds="True" Click="refreshNowBtn_Click" />
        <CheckBox Content="Open MediaBrowser after refresh" Height="16" HorizontalAlignment="Left" Margin="245,49,0,0" Name="mediaBrowserRefreshOpen" VerticalAlignment="Top" Checked="mediaBrowserRefreshOpen_Checked" Unchecked="mediaBrowserRefreshOpen_Unchecked" />
        <CheckBox Content="Open Media Center after refresh" Height="16" HorizontalAlignment="Left" Margin="245,71,0,0" Name="mediaCenterRefreshOpen" VerticalAlignment="Top" Checked="mediaCenterRefreshOpen_Checked" Unchecked="mediaCenterRefreshOpen_Unchecked" />
        <CheckBox Content="Close Media Center before refresh" Height="16" HorizontalAlignment="Left" Margin="245,27,0,0" Name="closeMcBeforeRefreshChk" VerticalAlignment="Top" Checked="closeMcBeforeRefreshChk_Checked" Unchecked="closeMcBeforeRefreshChk_Unchecked" />
        <CheckBox Content="Only refresh when Media Center is closed" Height="16" HorizontalAlignment="Left" Margin="245,5,0,0" Name="onlyRefreshWhenClosedChk" VerticalAlignment="Top" Checked="onlyRefreshWhenClosedChk_Checked" Unchecked="onlyRefreshWhenClosedChk_Unchecked" />
        <Label Content="Maximum number of lines to display" Height="28" HorizontalAlignment="Right" Margin="350,151,65,0" Name="label3" VerticalAlignment="Bottom" Grid.Row="1" />
        <TextBox Height="23" HorizontalAlignment="Right" Margin="592,151,12,6" Name="maxLinesTxt" VerticalAlignment="Bottom" Width="40" Grid.Row="1" />
        <CheckBox Content="Output to File" Grid.Row="1" Height="16" HorizontalAlignment="Left" Margin="12,151,0,0" Name="outputToFileChk" VerticalAlignment="Top" Checked="outputToFileChk_Checked" Unchecked="outputToFileChk_Unchecked" />
        <Button Content="Save Config" Height="23" HorizontalAlignment="Left" Margin="556,12,0,0" Name="saveConfigBtn" VerticalAlignment="Top" Width="75" Click="saveConfigBtn_Click" />
        <Image Height="76" HorizontalAlignment="Left" Margin="12,5,0,0" Name="image1" Stretch="None" VerticalAlignment="Top" Width="227" ImageFailed="image1_ImageFailed" Source="/FullRefreshService;component/mbs.png" />
    </Grid>
</Window>
